package ai.people.netmon;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.web.client.RestTemplate;


/**
 * @description: cms管理系统启动类
 * @author: Xing.Wei
 * @time: 2020-09-02 11:21
 */
@MapperScan("ai.people.netmon.msgsearch.mapper") // mybatis扫描的Mapper包
@SpringBootApplication
public class ElasticSearchApplication9013 {

    public static void main(String[] args) {
        SpringApplication.run(ElasticSearchApplication9013.class, args);
    }
    /**
     * 创建RestTemplate并注入Spring容器
     */
    @LoadBalanced
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
